<?php
/*
 * Created on Nov 4, 2007
 *
 * Continut: headerul paginii
 *
 */

echo("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
echo (" <html xmlns='http://www.w3.org/1999/xhtml'>");
echo("<head>");
echo("<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />");
// echo("<meta http-equiv='Cache-Control' content='max-age=0, must-revalidate' />");
// echo("<meta http-equiv='Keep-Alive' content='timeout=2, max=5'/>");
echo("<title>..::Dante v0.3::..</title>");
echo("<link rel='shortcut icon' href='include/images/favicon.ico'/>");

//css
echo("<link href='include/css/styleBase.css' type='text/css' rel='stylesheet' media='screen' />");
echo("<link href='include/css/styleUtilities.css' type='text/css' rel='stylesheet' media='screen' />");

//js
echo("<script language='javascript' type='text/javascript' src='include/js/browserProcess.js'></script>");
echo("<script language='javascript' type='text/javascript' src='include/js/cssjs.js'></script>");

if($_GET['center'] == 'newproj'){
	echo("<script language='javascript' type='text/javascript' src='include/js/validare.js'></script>");
}elseif ($_GET['center'] == 'view'){
	//css
	echo("<link href='include/css/styleXmlDocument.css' type='text/css' rel='stylesheet' media='screen' />");
	
	if($_SESSION['documentInfo'][$_GET['chapter']]['author'] == $_SESSION['username']){
		echo("<script language='javascript' type='text/javascript' src='include/js/xhrXmlDocument.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/cssjsXmlDocument.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlDocument.class.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlChapter.class.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlBasicElements.class.js'></script>");		
	}else{
		//css
		echo("<link href='include/css/styleXmlChapterComment.css' type='text/css' rel='stylesheet' media='screen' />");
		//js
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlDocument.class.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlChapter.class.js'></script>");
		
		echo("<script language='javascript' type='text/javascript' src='include/js/xhrComments.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/cssjsXmlChapterComment.js'></script>");
		echo("<script language='javascript' type='text/javascript' src='include/js/xmlChapterComments.class.js'></script>");
	}
}elseif ($_GET['center'] == 'viewAgenda' || $_GET['center'] == 'export'){
	//css
	echo("<link href='include/css/styleAgenda.css' type='text/css' rel='stylesheet' media='screen' />");
	//js
	echo("<script language='javascript' type='text/javascript' src='include/js/cssjsAgenda.js'></script>");
	echo("<script language='javascript' type='text/javascript' src='include/js/xhrAgenda.js'></script>");
}

echo("</head>");
echo("<body onLoad='checkBrowser()'>");


?>
